// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import cxivm from './cxivmInstall.js'
import router from './router'
import store from './store'
import cjcAPI from './cjcAPI'
import './style/cxivmTheme.less'
// import Sock from 'sockjs'
// import Stomp from 'stomp'
// import VueStomp from 'vue-stomp'
import Socket from './websocket.js'
import Cookie from 'js-cookie'
import App from './App.vue'

// cjcJSapi载入
Vue.use(cjcAPI)
Vue.use(cxivm)
Vue.prototype.socket = Socket
Vue.prototype.cookie = Cookie
// Vue.use(Socket)
// console.log('socket', Socket)
// 载入websocket库
// Vue.use(VueStomp, '10.20.5.200:8080/endpointWisely')
// Vue.use(Sock)
// Vue.use(Stomp)
// 生产模式下是否提示
Vue.config.productionTip = false

new Vue({
    el: '#app',
    components: {
        App
    },
    template: '<App/>',
    router,
    store,
    beforeCreate() {
        this.$cjc.viewInit()
    }
})
